package com.huiyuan.feign;

import com.huiyuan.common.Bike;
import com.huiyuan.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author huiyuan080
 * @data 2023/5/3
 * @apiNote
 */
@FeignClient(value = "cbt-bike")
public interface BikeService {
    /**
     * 修改车辆的使用情况
     * @param bicycleId
     * @return
     */
    @GetMapping("/bicycle-service/bicycle/addUse/{bicycleId}")
    public Result addUse(@RequestParam("bicycleId") Integer bicycleId);

    /**
     * 查询用户用车信息
     * @param bicycleId
     * @return
     */
    @GetMapping("/bicycle-service/bicycle/isNull/{bicycleId}")
    public Bike isNull(@RequestParam("bicycleId") Integer bicycleId);


}
